package com.eas.yunzhijia.easTodo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class MessageEntity {


    /**
     * url : https://www.yunzhijia.com
     * sourceId : jzyj2eeappdemo
     * content : [轻应用Demo演示]成建蒋的请假单据需要您审批
     * title : 轻应用Demo演示
     * itemtitle : 请假审批
     * headImg : https://yunzhijia.com/appsys/download.action?filename=500000813.png&type=9
     * appId : 500043950
     * senderId : 5a9e3bfce4b032a2d1d40e72
     * params : [{"status":{"DO":0,"READ":0},"openId":"5a9e3bfce4b032a2d1d40e93"}]
     */

    private String url;
    private String sourceId;
    private String content;
    private String title;
    private String itemtitle;
    private String headImg;
    private String appId;
    private String senderId;
    private List<ParamsBean> params;

    @NoArgsConstructor
    @Data
    public static class ParamsBean {
        /**
         * status : {"DO":0,"READ":0}
         * openId : 5a9e3bfce4b032a2d1d40e93
         */

        private StatusBean status;
        private String openId;

        @NoArgsConstructor
        @Data
        public static class StatusBean {
            /**
             * DO : 0
             * READ : 0
             */

            private int DO;
            private int READ;
        }
    }
}
